package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.BatteryRealTimeStatusMapper;
import com.ruoyi.system.domain.BatteryRealTimeStatus;
import com.ruoyi.system.service.IBatteryRealTimeStatusService;

/**
 * 电池实时状态Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-11-14
 */
@Service
public class BatteryRealTimeStatusServiceImpl implements IBatteryRealTimeStatusService 
{
    @Autowired
    private BatteryRealTimeStatusMapper batteryRealTimeStatusMapper;

    /**
     * 查询电池实时状态
     * 
     * @param id 电池实时状态主键
     * @return 电池实时状态
     */
    @Override
    public BatteryRealTimeStatus selectBatteryRealTimeStatusById(Integer id)
    {
        return batteryRealTimeStatusMapper.selectBatteryRealTimeStatusById(id);
    }

    /**
     * 查询电池实时状态列表
     * 
     * @param batteryRealTimeStatus 电池实时状态
     * @return 电池实时状态
     */
    @Override
    public List<BatteryRealTimeStatus> selectBatteryRealTimeStatusList(BatteryRealTimeStatus batteryRealTimeStatus)
    {
        return batteryRealTimeStatusMapper.selectBatteryRealTimeStatusList(batteryRealTimeStatus);
    }

    /**
     * 新增电池实时状态
     * 
     * @param batteryRealTimeStatus 电池实时状态
     * @return 结果
     */
    @Override
    public int insertBatteryRealTimeStatus(BatteryRealTimeStatus batteryRealTimeStatus)
    {
        return batteryRealTimeStatusMapper.insertBatteryRealTimeStatus(batteryRealTimeStatus);
    }

    /**
     * 修改电池实时状态
     * 
     * @param batteryRealTimeStatus 电池实时状态
     * @return 结果
     */
    @Override
    public int updateBatteryRealTimeStatus(BatteryRealTimeStatus batteryRealTimeStatus)
    {
        return batteryRealTimeStatusMapper.updateBatteryRealTimeStatus(batteryRealTimeStatus);
    }

    /**
     * 批量删除电池实时状态
     * 
     * @param ids 需要删除的电池实时状态主键
     * @return 结果
     */
    @Override
    public int deleteBatteryRealTimeStatusByIds(Integer[] ids)
    {
        return batteryRealTimeStatusMapper.deleteBatteryRealTimeStatusByIds(ids);
    }

    /**
     * 删除电池实时状态信息
     * 
     * @param id 电池实时状态主键
     * @return 结果
     */
    @Override
    public int deleteBatteryRealTimeStatusById(Integer id)
    {
        return batteryRealTimeStatusMapper.deleteBatteryRealTimeStatusById(id);
    }
}
